import request from '@api/request';
import { HttpUrl } from '@api/httpUrl';

// 获取天气
export function getWeather() {
    return request.get<OpenPlatform['WeatherData']>(HttpUrl.getWeather);
}

// 获取ocr识别
export function getOCR(type: 'image' | 'pdf', file: Base64URLString, pageNum: number = 1) {
    return request.post<OpenPlatform['OcrData']>(HttpUrl.getOCR, { type, file, pageNum });
}
